<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxBoxController.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxBoxController_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxBoxController.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxBoxController_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef PX_PHYSICS_CCT_BOX_CONTROLLER</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define PX_PHYSICS_CCT_BOX_CONTROLLER</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxController_8h.html">characterkinematic/PxController.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classPxBoxControllerDesc.html">   49</a></span>&#160;<span class="keyword">class </span><a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a> : <span class="keyword">public</span> <a class="code" href="classPxControllerDesc.html">PxControllerDesc</a></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                               <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>();</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classPxBoxControllerDesc.html#a46b933510a1ae7f17a2a0ad63e46579e">   56</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span>                       <a class="code" href="classPxBoxControllerDesc.html#a46b933510a1ae7f17a2a0ad63e46579e">~PxBoxControllerDesc</a>() {}</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                               <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>(<span class="keyword">const</span> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp;);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp;          operator=(<span class="keyword">const</span> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp;);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span>   <span class="keywordtype">void</span>                setToDefault();</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span>   <span class="keywordtype">bool</span>                isValid()       <span class="keyword">const</span>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classPxBoxControllerDesc.html#a815c411aad6776da24bbb4fceb6aa8b6">   85</a></span>&#160;    <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>               <a class="code" href="classPxBoxControllerDesc.html#a815c411aad6776da24bbb4fceb6aa8b6">halfHeight</a>;         <span class="comment">// Half-height in the &quot;up&quot; direction</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classPxBoxControllerDesc.html#ab3c305136be5d04e77862a7e2e4f4808">   92</a></span>&#160;    <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>               <a class="code" href="classPxBoxControllerDesc.html#ab3c305136be5d04e77862a7e2e4f4808">halfSideExtent</a>;     <span class="comment">// Half-extent in the &quot;side&quot; direction</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classPxBoxControllerDesc.html#a4efede85355dc05251d1c5c8bbb5a8bf">   99</a></span>&#160;    <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>               <a class="code" href="classPxBoxControllerDesc.html#a4efede85355dc05251d1c5c8bbb5a8bf">halfForwardExtent</a>;  <span class="comment">// Half-extent in the &quot;forward&quot; direction</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> copy(<span class="keyword">const</span> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp;);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;};</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="group__character.html#ga5d8e29dacee8a0a6543029435c0d5dc6">  105</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__character.html#ga5d8e29dacee8a0a6543029435c0d5dc6">PxBoxControllerDesc::PxBoxControllerDesc</a>() :</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <a class="code" href="classPxControllerDesc.html">PxControllerDesc</a>    (<a class="code" href="structPxControllerShapeType.html">PxControllerShapeType</a>::eBOX),</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    halfHeight          (1.0f),</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    halfSideExtent      (0.5f),</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    halfForwardExtent   (0.5f)</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;{</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;}</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="group__character.html#gac1aba7d97780ef07724bbb1ec1a7514c">  113</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__character.html#ga5d8e29dacee8a0a6543029435c0d5dc6">PxBoxControllerDesc::PxBoxControllerDesc</a>(<span class="keyword">const</span> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp; other) : <a class="code" href="classPxControllerDesc.html">PxControllerDesc</a>(other)</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <a class="code" href="group__character.html#ga08c251badc674d74a5f9abb07ae5ad8f">copy</a>(other);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group__character.html#ga95e4b49e470d870c151c3d727a273676">  118</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp; <a class="code" href="group__character.html#ga95e4b49e470d870c151c3d727a273676">PxBoxControllerDesc::operator=</a>(<span class="keyword">const</span> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp; other)</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <a class="code" href="group__character.html#gae237ed6fc1c29cdf83cda84e7e0c8b39">PxControllerDesc::operator=</a>(other);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <a class="code" href="group__character.html#ga08c251badc674d74a5f9abb07ae5ad8f">copy</a>(other);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;}</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="group__character.html#ga08c251badc674d74a5f9abb07ae5ad8f">  125</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__character.html#ga08c251badc674d74a5f9abb07ae5ad8f">PxBoxControllerDesc::copy</a>(<span class="keyword">const</span> <a class="code" href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a>&amp; other)</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;{</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <a class="code" href="classPxBoxControllerDesc.html#a815c411aad6776da24bbb4fceb6aa8b6">halfHeight</a>          = other.<a class="code" href="classPxBoxControllerDesc.html#a815c411aad6776da24bbb4fceb6aa8b6">halfHeight</a>;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <a class="code" href="classPxBoxControllerDesc.html#ab3c305136be5d04e77862a7e2e4f4808">halfSideExtent</a>      = other.<a class="code" href="classPxBoxControllerDesc.html#ab3c305136be5d04e77862a7e2e4f4808">halfSideExtent</a>;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="classPxBoxControllerDesc.html#a4efede85355dc05251d1c5c8bbb5a8bf">halfForwardExtent</a>   = other.<a class="code" href="classPxBoxControllerDesc.html#a4efede85355dc05251d1c5c8bbb5a8bf">halfForwardExtent</a>;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="group__character.html#gaf2f271a2e1d38f619d345bd89f737412">  132</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__character.html#gaf2f271a2e1d38f619d345bd89f737412">PxBoxControllerDesc::setToDefault</a>()</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    *<span class="keyword">this</span> = <a class="code" href="group__character.html#ga5d8e29dacee8a0a6543029435c0d5dc6">PxBoxControllerDesc</a>();</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;}</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="group__character.html#gac5087dc1e8dfbeb8c8172d229ed53f3e">  137</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="group__character.html#gac5087dc1e8dfbeb8c8172d229ed53f3e">PxBoxControllerDesc::isValid</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordflow">if</span>(!<a class="code" href="group__character.html#gae271bb573608662d4ac54edc1f2c54a6">PxControllerDesc::isValid</a>())    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxBoxControllerDesc.html#a815c411aad6776da24bbb4fceb6aa8b6">halfHeight</a>&lt;=0.0f)                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxBoxControllerDesc.html#ab3c305136be5d04e77862a7e2e4f4808">halfSideExtent</a>&lt;=0.0f)            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxBoxControllerDesc.html#a4efede85355dc05251d1c5c8bbb5a8bf">halfForwardExtent</a>&lt;=0.0f)         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#a51fe254a4807b832b2d34e884d856438">stepOffset</a>&gt;2.0f*<a class="code" href="classPxBoxControllerDesc.html#a815c411aad6776da24bbb4fceb6aa8b6">halfHeight</a>)      <span class="keywordflow">return</span> <span class="keyword">false</span>;   <span class="comment">// Prevents obvious mistakes</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;}</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classPxBoxController.html">  152</a></span>&#160;<span class="keyword">class </span><a class="code" href="classPxBoxController.html">PxBoxController</a> : <span class="keyword">public</span> <a class="code" href="classPxController.html">PxController</a></div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;{</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keyword">virtual</span>     <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>           <a class="code" href="classPxBoxController.html#a25c66f4fabdb4d689bc77aba02f66ebd">getHalfHeight</a>()         <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keyword">virtual</span>     <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>           <a class="code" href="classPxBoxController.html#a3e1de6ef41ef607c768012530931cb98">getHalfSideExtent</a>()     <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="keyword">virtual</span>     <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>           <a class="code" href="classPxBoxController.html#addbaf29dafa43422705e70449a62a8a1">getHalfForwardExtent</a>()  <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">bool</span>            <a class="code" href="classPxBoxController.html#af959bc51b41f2c00156cd28bd19fc240">setHalfHeight</a>(<a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> halfHeight)                 = 0;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">bool</span>            <a class="code" href="classPxBoxController.html#af1b0b85810c79821ddb61cb42d0ef730">setHalfSideExtent</a>(<a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> halfSideExtent)         = 0;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">bool</span>            <a class="code" href="classPxBoxController.html#acae44a6bab0ca9da6d47b84345d03e61">setHalfForwardExtent</a>(<a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> halfForwardExtent)   = 0;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classPxBoxController.html#a5182b7d6bd38b10d31ecdc6453b0ecbe">  220</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                   <a class="code" href="classPxBoxController.html#a5182b7d6bd38b10d31ecdc6453b0ecbe">PxBoxController</a>()   {}</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classPxBoxController.html#a792cdd51d6c3efdf97679f7afb399332">  221</a></span>&#160;    <span class="keyword">virtual</span>                     <a class="code" href="classPxBoxController.html#a792cdd51d6c3efdf97679f7afb399332">~PxBoxController</a>()  {}</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;};</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="group__character_html_ga95e4b49e470d870c151c3d727a273676"><div class="ttname"><a href="group__character.html#ga95e4b49e470d870c151c3d727a273676">PxBoxControllerDesc::operator=</a></div><div class="ttdeci">PX_INLINE PxBoxControllerDesc &amp; operator=(const PxBoxControllerDesc &amp;)</div><div class="ttdoc">assignment operator. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:118</div></div>
<div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="classPxBoxController_html_a5182b7d6bd38b10d31ecdc6453b0ecbe"><div class="ttname"><a href="classPxBoxController.html#a5182b7d6bd38b10d31ecdc6453b0ecbe">PxBoxController::PxBoxController</a></div><div class="ttdeci">PX_INLINE PxBoxController()</div><div class="ttdef"><b>Definition:</b> PxBoxController.h:220</div></div>
<div class="ttc" id="namespacephysx_html_ab4cf332bdb6e8b183e40b6973acc1e9b"><div class="ttname"><a href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">physx::PxF32</a></div><div class="ttdeci">float PxF32</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:76</div></div>
<div class="ttc" id="classPxBoxController_html_a25c66f4fabdb4d689bc77aba02f66ebd"><div class="ttname"><a href="classPxBoxController.html#a25c66f4fabdb4d689bc77aba02f66ebd">PxBoxController::getHalfHeight</a></div><div class="ttdeci">virtual PxF32 getHalfHeight() const =0</div><div class="ttdoc">Gets controller&amp;#39;s half height. </div></div>
<div class="ttc" id="group__character_html_ga08c251badc674d74a5f9abb07ae5ad8f"><div class="ttname"><a href="group__character.html#ga08c251badc674d74a5f9abb07ae5ad8f">PxBoxControllerDesc::copy</a></div><div class="ttdeci">PX_INLINE void copy(const PxBoxControllerDesc &amp;)</div><div class="ttdef"><b>Definition:</b> PxBoxController.h:125</div></div>
<div class="ttc" id="group__character_html_gae271bb573608662d4ac54edc1f2c54a6"><div class="ttname"><a href="group__character.html#gae271bb573608662d4ac54edc1f2c54a6">PxControllerDesc::isValid</a></div><div class="ttdeci">virtual PX_INLINE bool isValid() const</div><div class="ttdoc">returns true if the current settings are valid </div><div class="ttdef"><b>Definition:</b> PxController.h:597</div></div>
<div class="ttc" id="classPxBoxControllerDesc_html_a815c411aad6776da24bbb4fceb6aa8b6"><div class="ttname"><a href="classPxBoxControllerDesc.html#a815c411aad6776da24bbb4fceb6aa8b6">PxBoxControllerDesc::halfHeight</a></div><div class="ttdeci">PxF32 halfHeight</div><div class="ttdoc">Half height. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:85</div></div>
<div class="ttc" id="classPxBoxController_html_af959bc51b41f2c00156cd28bd19fc240"><div class="ttname"><a href="classPxBoxController.html#af959bc51b41f2c00156cd28bd19fc240">PxBoxController::setHalfHeight</a></div><div class="ttdeci">virtual bool setHalfHeight(PxF32 halfHeight)=0</div><div class="ttdoc">Sets controller&amp;#39;s half height. </div></div>
<div class="ttc" id="PxController_8h_html"><div class="ttname"><a href="PxController_8h.html">PxController.h</a></div></div>
<div class="ttc" id="classPxControllerDesc_html_a51fe254a4807b832b2d34e884d856438"><div class="ttname"><a href="classPxControllerDesc.html#a51fe254a4807b832b2d34e884d856438">PxControllerDesc::stepOffset</a></div><div class="ttdeci">PxF32 stepOffset</div><div class="ttdoc">Defines the maximum height of an obstacle which the character can climb. </div><div class="ttdef"><b>Definition:</b> PxController.h:417</div></div>
<div class="ttc" id="classPxBoxControllerDesc_html_a4efede85355dc05251d1c5c8bbb5a8bf"><div class="ttname"><a href="classPxBoxControllerDesc.html#a4efede85355dc05251d1c5c8bbb5a8bf">PxBoxControllerDesc::halfForwardExtent</a></div><div class="ttdeci">PxF32 halfForwardExtent</div><div class="ttdoc">Half forward extent. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:99</div></div>
<div class="ttc" id="group__character_html_gac5087dc1e8dfbeb8c8172d229ed53f3e"><div class="ttname"><a href="group__character.html#gac5087dc1e8dfbeb8c8172d229ed53f3e">PxBoxControllerDesc::isValid</a></div><div class="ttdeci">virtual PX_INLINE bool isValid() const</div><div class="ttdoc">returns true if the current settings are valid </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:137</div></div>
<div class="ttc" id="classPxBoxControllerDesc_html"><div class="ttname"><a href="classPxBoxControllerDesc.html">PxBoxControllerDesc</a></div><div class="ttdoc">Descriptor for a box character controller. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:49</div></div>
<div class="ttc" id="classPxBoxController_html"><div class="ttname"><a href="classPxBoxController.html">PxBoxController</a></div><div class="ttdoc">Box character controller. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:152</div></div>
<div class="ttc" id="classPxController_html"><div class="ttname"><a href="classPxController.html">PxController</a></div><div class="ttdoc">Base class for character controllers. </div><div class="ttdef"><b>Definition:</b> PxController.h:628</div></div>
<div class="ttc" id="group__character_html_gae237ed6fc1c29cdf83cda84e7e0c8b39"><div class="ttname"><a href="group__character.html#gae237ed6fc1c29cdf83cda84e7e0c8b39">PxControllerDesc::operator=</a></div><div class="ttdeci">PX_INLINE PxControllerDesc &amp; operator=(const PxControllerDesc &amp;)</div><div class="ttdoc">assignment operator. </div><div class="ttdef"><b>Definition:</b> PxController.h:565</div></div>
<div class="ttc" id="classPxBoxController_html_a792cdd51d6c3efdf97679f7afb399332"><div class="ttname"><a href="classPxBoxController.html#a792cdd51d6c3efdf97679f7afb399332">PxBoxController::~PxBoxController</a></div><div class="ttdeci">virtual ~PxBoxController()</div><div class="ttdef"><b>Definition:</b> PxBoxController.h:221</div></div>
<div class="ttc" id="classPxBoxController_html_af1b0b85810c79821ddb61cb42d0ef730"><div class="ttname"><a href="classPxBoxController.html#af1b0b85810c79821ddb61cb42d0ef730">PxBoxController::setHalfSideExtent</a></div><div class="ttdeci">virtual bool setHalfSideExtent(PxF32 halfSideExtent)=0</div><div class="ttdoc">Sets controller&amp;#39;s half side extent. </div></div>
<div class="ttc" id="group__character_html_gaf2f271a2e1d38f619d345bd89f737412"><div class="ttname"><a href="group__character.html#gaf2f271a2e1d38f619d345bd89f737412">PxBoxControllerDesc::setToDefault</a></div><div class="ttdeci">virtual PX_INLINE void setToDefault()</div><div class="ttdoc">(re)sets the structure to the default. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:132</div></div>
<div class="ttc" id="structPxControllerShapeType_html"><div class="ttname"><a href="structPxControllerShapeType.html">PxControllerShapeType</a></div><div class="ttdoc">The type of controller, eg box, sphere or capsule. </div><div class="ttdef"><b>Definition:</b> PxController.h:49</div></div>
<div class="ttc" id="classPxBoxControllerDesc_html_a46b933510a1ae7f17a2a0ad63e46579e"><div class="ttname"><a href="classPxBoxControllerDesc.html#a46b933510a1ae7f17a2a0ad63e46579e">PxBoxControllerDesc::~PxBoxControllerDesc</a></div><div class="ttdeci">virtual PX_INLINE ~PxBoxControllerDesc()</div><div class="ttdef"><b>Definition:</b> PxBoxController.h:56</div></div>
<div class="ttc" id="classPxBoxControllerDesc_html_ab3c305136be5d04e77862a7e2e4f4808"><div class="ttname"><a href="classPxBoxControllerDesc.html#ab3c305136be5d04e77862a7e2e4f4808">PxBoxControllerDesc::halfSideExtent</a></div><div class="ttdeci">PxF32 halfSideExtent</div><div class="ttdoc">Half side extent. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:92</div></div>
<div class="ttc" id="classPxBoxController_html_addbaf29dafa43422705e70449a62a8a1"><div class="ttname"><a href="classPxBoxController.html#addbaf29dafa43422705e70449a62a8a1">PxBoxController::getHalfForwardExtent</a></div><div class="ttdeci">virtual PxF32 getHalfForwardExtent() const =0</div><div class="ttdoc">Gets controller&amp;#39;s half forward extent. </div></div>
<div class="ttc" id="classPxBoxController_html_acae44a6bab0ca9da6d47b84345d03e61"><div class="ttname"><a href="classPxBoxController.html#acae44a6bab0ca9da6d47b84345d03e61">PxBoxController::setHalfForwardExtent</a></div><div class="ttdeci">virtual bool setHalfForwardExtent(PxF32 halfForwardExtent)=0</div><div class="ttdoc">Sets controller&amp;#39;s half forward extent. </div></div>
<div class="ttc" id="classPxControllerDesc_html"><div class="ttname"><a href="classPxControllerDesc.html">PxControllerDesc</a></div><div class="ttdoc">Descriptor class for a character controller. </div><div class="ttdef"><b>Definition:</b> PxController.h:300</div></div>
<div class="ttc" id="group__character_html_ga5d8e29dacee8a0a6543029435c0d5dc6"><div class="ttname"><a href="group__character.html#ga5d8e29dacee8a0a6543029435c0d5dc6">PxBoxControllerDesc::PxBoxControllerDesc</a></div><div class="ttdeci">PX_INLINE PxBoxControllerDesc()</div><div class="ttdoc">constructor sets to default. </div><div class="ttdef"><b>Definition:</b> PxBoxController.h:105</div></div>
<div class="ttc" id="group__foundation_html_gacb03347b642a2a5bdea1f9b305a6fbec"><div class="ttname"><a href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a></div><div class="ttdeci">#define PX_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:336</div></div>
<div class="ttc" id="classPxBoxController_html_a3e1de6ef41ef607c768012530931cb98"><div class="ttname"><a href="classPxBoxController.html#a3e1de6ef41ef607c768012530931cb98">PxBoxController::getHalfSideExtent</a></div><div class="ttdeci">virtual PxF32 getHalfSideExtent() const =0</div><div class="ttdoc">Gets controller&amp;#39;s half side extent. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="dir_e265834866c0b1ff8bcb07c8c6107029.html">characterkinematic</a></li><li class="navelem"><a class="el" href="PxBoxController_8h.html">PxBoxController.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
